package eerbaar.v2.menu;

import eerbaar.v2.app.menu.IMenuItem;
import eerbaar.v2.graphics.rect.Rectangle2;

public class MenuItem implements IMenuItem {

    private final String text;
    private boolean running;
    private boolean mouseOver;
    private Rectangle2 rectangle;

    public MenuItem(String text) {
        this.text = text;
    }

    public void execute() {

    }

    public Rectangle2 getRectangle() {
        return this.rectangle;
    }

    @Override
    public String getText() {
        return this.text;
    }

    public boolean isMouseOver() {
        return this.mouseOver;
    }

    public boolean isRunning() {
        return this.running;
    }

    public void setMouseOver(boolean mouseOver) {
        this.mouseOver = mouseOver;
    }

    public void setRectangle(Rectangle2 rectangle) {
        this.rectangle = rectangle;
    }

    public void setRunning(boolean running) {
        this.running = running;
    }

    public void toggleRunning() {
        this.running = !this.running;
    }

}
